---
layout: "default"
title: "ImplicitlyUnwrappedOptional"
description: "Swift documentation for 'ImplicitlyUnwrappedOptional': An optional type that allows implicit member access."
keywords: "ImplicitlyUnwrappedOptional,enum,swift,documentation,debugDescription,description"
root: "/v3.1"
---

<div class="intro-declaration"><code class="language-swift">enum ImplicitlyUnwrappedOptional&lt;Wrapped&gt;</code></div>

<div class="discussion comment">
    <p>An optional type that allows implicit member access.</p>

<p><em>Deprecated.</em></p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">CustomDebugStringConvertible, CustomStringConvertible, ExpressibleByNilLiteral</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>

<h3 id="cases">Cases</h3>
<div class="declaration" id="case-none">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-none">case none</a>
<div class="comment collapse" id="comment-case-none"><div class="p">
    <p>The absence of a value. Typically written using the nil literal, <code>nil</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-some">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-some">case some(Wrapped)</a>
<div class="comment collapse" id="comment-case-some"><div class="p">
    <p>The presence of a value, stored as <code>Wrapped</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>

<h3>Initializers</h3>
<div class="declaration" id="init_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init_">init(<wbr>_:)</a><div class="comment collapse" id="comment-init_"><div class="p">
    <p>Creates an instance that stores the given value.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">init(_ some: Wrapped)</code>

    </div></div>
</div>
<div class="declaration" id="init-nilliteral_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init-nilliteral_">init(<wbr>nilLiteral:)</a><div class="comment collapse" id="comment-init-nilliteral_"><div class="p">
    <p>Creates an instance initialized with <code>nil</code>.</p>

<p>Do not call this initializer directly. It is used by the compiler when
you initialize an <code>Optional</code> instance with a <code>nil</code> literal. For example:</p>

<pre><code class="language-swift">let i: Index! = nil</code></pre>

    <h4>Declaration</h4>    
    <code class="language-swift">init(nilLiteral: ())</code>

    </div></div>
</div>


<h3>Instance Variables</h3>
<div class="declaration" id="var-debugdescription_-string">
<a class="toggle-link" data-toggle="collapse" href="#comment-var-debugdescription_-string">var debugDescription: String</a><div class="comment collapse" id="comment-var-debugdescription_-string"><div class="p">
    <p>A textual representation of this instance, suitable for debugging.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">var debugDescription: String { get }</code>

    </div></div>
</div>
<div class="declaration" id="var-description_-string">
<a class="toggle-link" data-toggle="collapse" href="#comment-var-description_-string">var description: String</a><div class="comment collapse" id="comment-var-description_-string"><div class="p">
    <p>A textual representation of the value, or <code>nil</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">var description: String { get }</code>

    </div></div>
</div>





